package com.cuckoo.mall.thus.menuaccount.ticket;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bgn.baseframe.utils.BaseStringUtil;
import com.bgn.baseframe.utils.DateUtil;
import com.bgn.baseframe.utils.imageloader.ImageLoader;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cuckoo.mall.R;
import com.cuckoo.mall.javabean.Product;
import com.cuckoo.mall.javabean.Ticket;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * Created by wanglun on 2018/3/3.
 */

public class TicketListAdapter extends BaseQuickAdapter<Ticket, BaseViewHolder> {


    public TicketListAdapter(@Nullable List<Ticket> data) {
        super(R.layout.list_item_ticket, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Ticket item) {
        helper.setText(R.id.tv_price,item.getMoney()/100+"");
        helper.setText(R.id.label1,item.getCurrency());
        helper.setText(R.id.label3,item.getTitle());
        helper.setText(R.id.label4,item.getDesc());
    }


}
